package com.nq.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nq.pojo.UserWithdraw;
import java.math.BigDecimal;
import java.util.List;

import com.nq.pojo.vo.UserWithdrawVo;
import org.apache.ibatis.annotations.Param;

public interface UserWithdrawMapper extends BaseMapper<UserWithdraw> {
  int deleteByPrimaryKey(Integer paramInteger);
  
  int insert(UserWithdraw paramUserWithdraw);
  
  int insertSelective(UserWithdraw paramUserWithdraw);
  
  UserWithdraw selectByPrimaryKey(Integer paramInteger);
  
  int updateByPrimaryKeySelective(UserWithdraw paramUserWithdraw);
  
  int updateByPrimaryKey(UserWithdraw paramUserWithdraw);
  
  List findUserWithList(@Param("uid") Integer paramInteger, @Param("withStatus") Integer paramString);
  
  List listByAgent(@Param("searchId") Integer paramInteger1, @Param("realName") String paramString, @Param("state") Integer paramInteger2, @Param("type") Integer type);
  

  
  BigDecimal CountSpWithSumAmtByState(Integer paramInteger);

  BigDecimal CountSpWithSumAmTodaytByState(Integer paramInteger);
  
  int deleteByUserId(@Param("userId") Integer paramInteger);

  List<UserWithdrawVo> listByAdmin(@Param("accountType") String accountType,
                                   @Param("agentId") Integer agentId, @Param("userId") Integer userId,
                                   @Param("realName") String realName, @Param("state") Integer state, @Param("beginTime") String beginTime,
                                   @Param("endTime") String endTime,@Param("withStatus") String withStatus,@Param("type") String type,
                                   @Param("userPhone") String userPhone);

}
